package app.myproject.dao;

import app.myproject.model.EventLogVO;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

public class EventLogDAOImpl extends AbstractDAOImpl<EventLogVO, Key> {

	public EventLogDAOImpl() {
		super(EventLogVO.class);
	}

	public EventLogVO find(String encodedKey) {
		if (encodedKey != null) {
			Key key = KeyFactory.stringToKey(encodedKey);
			return super.find(key);
		}
		return null;
	}
	
	public void deleteById(String encodedKey) {
		Key key = KeyFactory.stringToKey(encodedKey);
		super.deleteById(key);
	}

}
